package com.catmiw.stock2013.domain;

import java.util.Date;

import com.catmiw.stock2013.util.DateTool;

public class CapitalChange {
	private String code;
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	private Date date;
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	private double total;
	private double currenta;
	private double facta;
	private String reason;
	
	public double getTotal() {
		return total;
	}
	public void setTotal(double total) {
		this.total = total;
	}
	public double getCurrenta() {
		return currenta;
	}
	public void setCurrenta(double currenta) {
		this.currenta = currenta;
	}
	public double getFacta() {
		return facta;
	}
	public void setFacta(double facta) {
		this.facta = facta;
	}
	public String toString(){
		return DateTool.dateToString(date,"yyyy-MM-dd") +"\t"+total+"\t"+currenta+"\t"+facta+"\t"+reason;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
}
